package com.wanmait.recycle.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wanmait.recycle.pojo.Rubbish;
import com.wanmait.recycle.pojo.Userinfo;

public interface RubbishMapper {
    int deleteByPrimaryKey(Integer id);
    
    int findMaxId();
 
    void insertpdz(Rubbish object);

    int insertSelective(Rubbish record);

    Rubbish selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Rubbish record);

    int updateByPrimaryKey(Rubbish record);
    
    void update(Rubbish object);
    
    void updateById(Integer id);
    
    void delete(Rubbish object);
    
    void deleteById(Integer id);
    
    void deleteByIds(String[] ids);
    
    void recallById(Integer id);
    
    List <Rubbish> findAll();
    
    List<Rubbish> findAllBySearch(@Param("searchStr")String searchStr,@Param("beginTime")String beginTime,@Param("endTime")String endTime);
        //根据搜索来
  	List<Rubbish> findBySearch(String seachData);
    //根据二级分类找垃圾 3.7 ad 
	List<Rubbish> findAllBySecondTypeId(Integer id);

	Rubbish findByRubbishNameAndContent(@Param("name")String objectName, @Param("content")String content);

	List<Rubbish> findAllBySearchRecyclable(@Param("searchStr")String searchStr, @Param("beginTime")String beginTime, @Param("endTime")String endTime);

	List<Rubbish> findAllUnCheck();
    
	List<Rubbish> findAllPass();

	List<Rubbish> findAllUnPass();

	Rubbish findByNameAndSecondTypeId(@Param("objectName")String objectName, @Param("nSecondTypeId")Integer nSecondTypeId);

	Integer getCountByParentId(Integer scId);
}